;;; init-popweb.el --- configuration for popweb -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:

(add-to-list 'load-path (expand-file-name "popweb/extension/latex" ctrlwei-emacs-site-lisp-directory))
(autoload 'popweb-latex-mode "popweb-latex" nil t)

(add-to-list 'load-path (expand-file-name "popweb/extension/dict" ctrlwei-emacs-site-lisp-directory))
(autoload 'popweb-dict-bing-input "popweb-dict" nil t)
(autoload 'popweb-dict-bing-pointer "popweb-dict" nil t)
(autoload 'popweb-dict-youdao-input "popweb-dict" nil t)
(autoload 'popweb-dict-youdao-pointer "popweb-dict" nil t)

(define-key ctrlwei-translate-map (kbd "d") #'popweb-dict-youdao-pointer)
(define-key ctrlwei-translate-map (kbd "f") #'popweb-dict-bing-pointer)
(define-key ctrlwei-translate-map (kbd "c") #'popweb-dict-youdao-input)
(define-key ctrlwei-translate-map (kbd "v") #'popweb-dict-bing-input)

(provide 'init-popweb)
;;; init-popweb ends here
